package Thread.New.Runable;

public class Main {
    public static void main(String[] args) {
        RunableImpl runable = new RunableImpl();
        Thread thread = new Thread(runable);

        thread.start();
        //开启线程

        new Thread(runable).start();
       /* new Thread(){
            @Override
            public void run() {
                System.out.println("------------------"+getName());
            }
        }.start();
        for (int i = 0; i < 20; i++) {
            System.out.println(Thread.currentThread().getName()+"---->"+i);
        }//设置线程任务*/

    }
}
